﻿<UserControl x:Class="SmartSpace.Silverlight.SlPagedbar"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="30" d:DesignWidth="600">

    <Grid x:Name="LayoutRoot">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Column="0" Orientation="Horizontal" VerticalAlignment="Center">
            <Button Name="m_buttonFirst" Margin="3,0,0,0" HorizontalAlignment="Center" Padding="2" VerticalAlignment="Center" Click="m_buttonFirst_Click">
                <Image Source="./Images/Pagedbar/page-first.png" Stretch="None"/>
            </Button>
            <Button Name="m_buttonPrev" Margin="3,0,0,0" HorizontalAlignment="Center" Padding="2" VerticalAlignment="Center" Click="m_buttonPrev_Click">
                <Image Source="./Images/Pagedbar/page-prev.png" Stretch="None"/>
            </Button>
            <TextBlock Text="第" Margin="3,0,0,0" VerticalAlignment="Center" />
            <TextBox Name="m_textBoxPageIndex" Text="2" Width="25" VerticalAlignment="Center" Margin="3,0,0,0" TextChanged="m_textBoxPageIndex_TextChanged" />
            <TextBlock Name="m_textTotalPage" Text="/5页" Margin="3,0,0,0" VerticalAlignment="Center" />
            <Button Name="m_buttonNext" Margin="3,0,0,0" HorizontalAlignment="Center" Padding="2" VerticalAlignment="Center" Click="m_buttonNext_Click">
                <Image Source="./Images/Pagedbar/page-next.png" Stretch="None"/>
            </Button>
            <Button Name="m_buttonLast" Margin="3,0,0,0" HorizontalAlignment="Center" Padding="2" VerticalAlignment="Center" Click="m_buttonLast_Click">
                <Image Source="./Images/Pagedbar/page-last.png" Stretch="None"/>
            </Button>
        </StackPanel>
        <TextBlock Grid.Column="1" Name="m_textTotalCount" Text="一共有0条数据" VerticalAlignment="Center" Margin="5"/>
    </Grid>
</UserControl>
